<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="/css/frame.css"/>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.1.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/layer-v1.9.2/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/common/common.js"></script>
<#--<link rel="stylesheet" href="${ctx}/plugin/combo/select/css/combo.select.css" type="text/css" />-->
<script type="text/javascript" src="${ctx}/plugin/My97DatePicker/WdatePicker.js" ></script>

<body>
<div class="l_err" style="wid 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post"
      action="/taskManage/addTask"
      enctype="multipart/form-data">
    <input id="dataUrl" value="${dataUrl}" type="hidden"/>
    <input type="hidden" id="personId" value="${personId}"/>
    <section class="">
        <div class="form-layer-group clearfix">
            <input name="projectName" type="hidden" id="projectName" value=""/>
            <input name="propId" type="hidden" id="propId" value=""/>
            <input name="excutePersonId" type="hidden" id="excutePersonId" value=""/>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">工程名称：</label>
                <select name="projectId" class="input-medium form-control m-b"  id="projectId">
                </select>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">工程阶段：</label>
                <select name="stageID" class="input-medium form-control m-b"  id="projectStage">
                </select>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">发布单位：</label>
                <input type="text" disabled  class="input-medium form-control m-b"  id="corpName" value="${corpName}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">库名称：</label>
                <select name="propName" class="input-medium form-control m-b"  id="propName">
                </select>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">发布人：</label>
                <input type="text" disabled id="personName" class="input-medium form-control m-b"  value="${personName}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">责任单位：</label>
                <select name="taskCorpId" class="input-medium form-control m-b"
                        onchange="getResponsibilityPersonList(this.options[this.options.selectedIndex].value)"
                        id="responsibilityCrop">
                </select>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">责任人：</label>
                <select name="taskPersonId" class="input-medium form-control m-b"
                        id="responsibilityPerson">
                </select>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">检查人：</label><span style="width: 130px" id="inspectPersonSpan"></span><a href="javascript:checkedInspectPerson()">选择检查人</a>
            <div id="inspectPerson" style="display: none;" >
                <input type="text" id="campus" onkeyup="ck(this.value);" placeholder="请输入要查找的姓名">
                <div id="inspectPersonList">

                </div>

            </div>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">触发时间：</label>
                <#--<input type="text" class="input-medium form-control m-b" id="startTime" value=""/>-->
                <input class="enabledtime input-medium form-control" name="startTime" id="startTime" placeholder="触发时间"  onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'endTime\')}'})" />
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">截止时间：</label>
                <#--<input type="text" class="input-medium form-control m-b" id="endTime" value=""/>-->
                <input class="enabledtime input-medium form-control" name="endTime" id="endTime" placeholder="截止时间" onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'startTime\')}'})" />
            </div>
            <footer class="panel-footer text-right bg-light lter">
                <button type="submit"  class="btn btn-main">提交</button>
            </footer>
        </div>
    </section>
</form>
</body>
<script type="text/javascript" src="${ctx}/js/task/pinyin.js"></script>
<script type="text/javascript" src="${ctx}/js/task/releaseTask.js"></script>
</html>
